﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<z.m.db.Order>" %>


<% if (ViewData["title"] != null) {%>
<thead>
	<tr>
		<td><%: Html.LabelFor(m=>m.ID) %></td>
		<td><%: Html.LabelFor(m=>m.Create_Date) %></td>
        <td><%: Html.LabelFor(m=>m.Pay_Date) %></td>
        <td><%: Html.LabelFor(m=>m.Order_Date) %></td>
        <td><%: Html.LabelFor(m=>m.Ship_Date) %></td>
        <td><%: Html.LabelFor(m=>m.Create_Time) %></td>
        <td><%: Html.LabelFor(m=>m.Pay_Time) %></td>
        <td><%: Html.LabelFor(m=>m.Order_Time) %></td>
        <td><%: Html.LabelFor(m=>m.Ship_Time) %></td>
	</tr>
</thead>
<%} else {
		using (Html.BeginForm("_Adminster", "Order", FormMethod.Post, new { id = "FormOrder" + Model.ID })) { %>
<tr>
	<td><%: Html.TextBoxFor(m => m.ID, new {@ReadOnly = true })%></td>
	<td><%:Html.EditorFor(m=>m.Create_Date)%><%:Html.EditorFor(m=>m.Create_Time)%></td>
	<td><%:Html.EditorFor(m=>m.Pay_Date)%><%:Html.EditorFor(m=>m.Pay_Time)%></td>
	<td><%:Html.EditorFor(m=>m.Order_Date)%><%:Html.EditorFor(m=>m.Order_Time)%></td>
	<td><%:Html.EditorFor(m=>m.Ship_Date)%><%:Html.EditorFor(m=>m.Ship_Time)%></td>
	<td>
		<input type="button" value="Save" onclick="ajaxTrSubmit('FormUser<%:Model.ID %>');" />
        <input type ="button" value="Save" onclick ='detail(this.parentElement.parentElement)' />
        </td>
</tr>
<%}
	}%>
	